﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NickPowell.LiveCode
{
    class SocketInfo
    {
        public enum SocketTypes { SlowRecieve, QuickRecieve };

        private System.Net.Sockets.Socket socConnectionSocket;
        private SocketTypes type;
        private int iIndex;

        public System.Net.Sockets.Socket ConnectionSocket
        {
            get
            {
                return this.socConnectionSocket;
            }
            set
            {
                this.socConnectionSocket = value;
            }
        }

        public SocketTypes Type
        {
            get
            {
                return this.type;
            }
        }

        public int Index
        {
            get
            {
                return this.iIndex;
            }
        }

        public SocketInfo(System.Net.Sockets.Socket _socConnection, SocketTypes _type, int _iIndex)
        {
            this.socConnectionSocket = _socConnection;
            this.type = _type;
            this.iIndex = _iIndex;
        }
    }
}
